// WorkerThread.h
//
#ifdef MULTIQUEUE

#ifndef WORKERTHREAD_H
#define WORKERTHREAD_H

#include <QRunnable>

namespace IDS {
namespace IDEAS {
namespace OpenGLView {

class VObjectGL;

class WorkerThread : public QRunnable
{
protected:
	VObjectGL *targetObject;
	double     targetPrecision;
	bool running;


	void run();

public:
	WorkerThread();
	virtual ~WorkerThread();

	void setTask( VObjectGL *obj, double precision );

	bool isRunning() {return running;}
};

}}}
#endif

#endif